package cn.sfrog.project.biz.admin.mapper;

import cn.sfrog.project.biz.admin.domain.BizServiceOrderComplaint;
import cn.sfrog.project.biz.admin.domain.vo.BizServiceOrderComplaintQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizServiceOrderComplaintVO;
import cn.sfrog.project.biz.web.vo.order.AppOrderComplaintVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单投诉Mapper接口
 */
public interface BizServiceOrderComplaintMapper extends BaseMapper<BizServiceOrderComplaint> {
    /**
     * 查询订单投诉
     *
     * @param id 订单投诉主键
     * @return 订单投诉
     */
    BizServiceOrderComplaintVO selectBizServiceOrderComplaintById(Long id);

    /**
     * 查询订单投诉列表
     *
     * @param query 订单投诉
     * @return 订单投诉集合
     */
    List<BizServiceOrderComplaintVO> selectBizServiceOrderComplaintList(BizServiceOrderComplaintQueryVO query);

    /**
     * APP-用户订单投诉列表
     * @param userId
     * @return
     */
    List<AppOrderComplaintVO> selectOrderComplaintByUserId(@Param("userId") Long userId);
}
